package com.dxtan90.gray.impl;


import com.dxtan90.gray.AbstractGrayMethod;

public class PowerMethod extends AbstractGrayMethod {

    public PowerMethod() {
        super("DEAL_POWER");
    }

    @Override
    public int getGrey(int red, int green, int blue) {
        return (int) (0.3 * red + 0.59 * green + 0.11 * blue);
    }
}
